package com.gee.spring.boot.starter.opengemini.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.time.Duration;
import java.util.List;

/**
 * @author gepengjun
 * @since 2024/4/30 10:43
 */
@Component
@ConfigurationProperties(prefix = "spring.opengemini")
@Data
public class OpengeminiProperties {

    private List<String> serverUrlList;

    private String username;

    private String password;

    private Duration connectTimeout = Duration.ofSeconds(10);

    private Duration timeout = Duration.ofSeconds(30);

    private Integer defaultBatchInsertSize = 100;

}
